package cn.south.campus.business.model.entity;

import cn.south.campus.common.model.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 地址表
 * </p>
 *
 * @author chow
 * @since 2024-11-14
 */
@EqualsAndHashCode(callSuper = true)
@TableName("campus_address")
@Data
public class Address extends BaseEntity {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 收货人姓名
     */
    private String name;

    /**
     * 收货人电话
     */
    private String phone;

    /**
     * 楼栋
     */
    private String building;

    /**
     * 房间号
     */
    private String address;

    /**
     * 是否默认地址，0否，1是
     */
    private Integer isDefault;
}
